<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<link href="css/main.css" rel="stylesheet" type="text/css" />
		<base href="<%=basePath%>" />
		<title>用户登录</title>
		<script type="text/javascript">
function checkNull(){
	if(document.getElementById("username").value==""){
		alert("用户名不能为空！");
		return false;
	}
	if(document.getElementById("password").value==""){
		alert("密码不能为空！");
		return false;
	}
		return true;
	}
</script>
	</head>

	<body>
		<div id="layout">

			<div id="login_header">
				<h1 class="login_header_text">
					<a href="index.do" title="返回首页">校园豆豆</a>
				</h1>
			</div>
			<div id="login_main">

				<div id="login_left">
				</div>
				<div id="login_right">

					<div id="login_right_main">

						<div id="login_rmain_first">
							<h3 class="login_title">
								会员登录
							</h3>
						</div>
						<div id="login_rmain_second">
							<form action="login!login.do" method="post"
								onsubmit="return checkNull();">
								<table width="280" id="login_table">
									<tr>
										<td></td>
										<td class="login_returnmsg">
											${returnmsg}
										</td>
									</tr>
									<tr>
										<td class="login_text">
											账户名
										</td>
										<td>
											<input type="text" class="input2" name="username"
												id="username" />
										</td>
									</tr>
									<tr height="15">
									</tr>
									<tr>
										<td class="login_text">
											密&nbsp;&nbsp;码
										</td>
										<td>
											<input type="password" class="input2" name="password"
												id="password" />
										</td>
									</tr>
									<tr height="10">
									</tr>
									<tr>
										<td>
										</td>
										<td class="login_text">
											<input type="radio" name="loginType" value="0"
												checked="checked" />
											会员&nbsp;&nbsp;&nbsp;
											<input type="radio" name="loginType" value="1" />
											商家
										</td>
									</tr>
									<tr height="5"></tr>
									<tr>
										<td></td>
										<td colspan="3" class="login_text">
											<input type="submit" name="button" id="button" value="登录"
												class="btn1" />
											&nbsp;
											<a href="#">找回密码</a> &nbsp;
											<a href="register.do">新用户注册</a>
										</td>
									</tr>
								</table>
							</form>
						</div>
						<!--
<div id="login_rmain_third">
</div>

<div id="login_rmain_forth">
</div>
-->
					</div>
				</div>
			</div>
			<!-- footer尾部 -->
			<%@ include file="/WEB-INF/common/footer/footer.jsp"%>
		</div>
	</body>
</html>
